eststo clear
local O runtime_h
foreach o of local O{

eststo: reghdfe `o' S_sourcing ln_q_b_garment signatory , abs(fmy dd cohort_b data_fem) vce(cluster b_id line) 
  quietly estadd local CTRL ="\scriptsize{B}", replace  
  quietly estadd local est ="OLS", replace  
  quietly estadd local FE ="sm($\tau$),$\tau$", replace  
  quietly estadd local CTRL2 ="Yes", replace    
  quietly estadd scalar  U =  . , replace   
  
eststo: reghdfe `o' S_sourcing ln_q_b_garment signatory i.line if `o'!=., abs(fmy  dd cohort_b data_fem) vce(cluster b_id line) 
  quietly estadd local CTRL ="\scriptsize{B}", replace  
  quietly estadd local est ="OLS", replace  
  quietly estadd local FE ="sm($\tau$),sl,$\tau$", replace  
  quietly estadd local CTRL2 ="Yes", replace    
  quietly estadd scalar  U =  . , replace   
  
}
*
esttab using "${tables}\TableC14.tex", ///
  title("Buyers' Sourcing and Labor Usage" \label{LaborUsage}) ///
  label replace booktabs b(3) se(3) noconstant obslast substitute(\_ _) ///
  keep(S_sourcing) order() /// 
  stats(FE   r2   N   , fmt( %~#s   2 %12.0fc  )  ///
  labels("FEs"  `"\(R^{2}\)"'  "Obs."  ))   ///
  star(* 0.10 ** 0.05 *** 0.01) ///
  nonotes    